package bread;

public class Consumer extends Thread {
    @Override
    public void run() {
        while (true) {
            synchronized (Bread.lock) {
                if (Bread.count == 0) {
                    break;
                }
            }
        }
    }
}